﻿using Cirrious.MvvmCross.ViewModels;

namespace TeaLightV5.Foundation.UX.Interfaces.Models
{
    public abstract class EntityModel<T, TKey> : MvxNotifyPropertyChanged, IEntityModel<T, TKey>
         
    {
        private TKey _id;
        public TKey Id
        {
            get { return _id; }
            set { _id = value; RaisePropertyChanged("Id"); }
        }

        public abstract void SetFrom(T entity);
        public abstract T GetEntity();
    }
}
